{extend name='public/layout'/}
<!-- 本页面要使用的css开始 -->
{block name='css'}
<link rel="stylesheet" href="__STATIC__/api/css/swiper-4.3.5.min.css?v={:time()}" />
<link rel="stylesheet" type="text/css" href="__STATIC__/api/css/income.css?v={:time()}" />
{/block}
<!-- 本页面要使用的css结束 -->
<!-- 本页面要使用的js开始 -->
{block name='js'}
<script src="__STATIC__/api/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/api/js/income.js" type="text/javascript" charset="utf-8"></script>
{/block}
<!-- 本页面要使用的js结束 -->
<!-- 页面主体开始 -->
{block name='app'}
<div class="income-head">
	<div class="wrap flex">
		<div class="income-head-left">
			<div class="date"  id='datetime-picker' @click="chooseTime()">
				<a class="weui-input" id="name" >{{data}}</a>
				<i></i>
			</div>
			<p class="earning">总收入¥{{flows.month_total.price}}  代金券收入¥{{flows.month_total.cashcard}}</p>
		</div>
		<div class="income-head-right">
			<span>收入类型：</span>
			<!-- <p class="">全部分类<i></i></p> -->
			<p class="type">
				<a class="weui-input " id="type"   @click="chooseType()">{{typeList}}</a>
				<i></i>
			</p>
			
			
		</div>
	</div>
</div>
<div class="income-cont">
	<div class="wrap">
		<div class="income-list clearfix" v-for="(item,index) in flows.flows">
			<div class="income-list-left fl clearfix">
				<a @click="toIncomeDetail(item.id)">
					<img src="__STATIC__/api/images/coupon.png" alt="" class="cost-type fl" v-if="item.cashcard_id!=0">
					<img src="__STATIC__/api/images/cash.png" alt="" class="cost-type fl" v-else>
					<div class="cost-name fl">
						<p class="p1">{{item.pay_type_name}}消费</p>
						<p class="p2">{{item.pay_at}}</p>
					</div>
				</a>
			</div>
			<div class="income-list-right fr">
				<a @click="toIncomeDetail(item.id)">
					<p class="p1">+{{item.true_price}}</p>
					<p class="p2">代金券无门槛¥{{item.cashcard_dec}}</p>
				</a>
			</div>
		</div>
	</div>
</div>
{include file='public/copyright' /}
{/block}
<!-- 页面主体结束 -->